package d0323;

public class Course {

        private String name;
        private double price;

        public Course(String name,double price) {
            this.name = name;
            this.price=price;
        }

        public static void main(String[] args) {
            Course c1= new Course("math",100);
            Course c2= new Course("math",100);
            System.out.println(c1==c2);
            System.out.println(c1.equals(c2));
        }
    }


